//
//  DataManager.h
//  WeGo
//
//  Created by sandMan on 16/1/20.
//  Copyright © 2016年 sandMan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "En_ResponseStatus.h"
#import "AFNetworking.h"
#import "XRCommonModel.h"

@interface DataManager : NSObject

@property (nonatomic, strong) AFHTTPSessionManager *httpmanager;

+ (instancetype)manager;

#pragma mark -  登录
- (NSURLSessionDataTask *)postLoginParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 获取验证码
- (NSURLSessionDataTask *)postPhoneCodeParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 更新用户信息
- (NSURLSessionDataTask *)postGetTimKeyParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 添加店员
- (NSURLSessionDataTask *)postAddPersonParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 查询店员
- (NSURLSessionDataTask *)postFindPersonParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 修改员工信息
- (NSURLSessionDataTask *)postUpdatePersonParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 删除店员
- (NSURLSessionDataTask *)postDeleteUserParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 获取账单人员
- (NSURLSessionDataTask *)postGetBillUserParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 查询油品
- (NSURLSessionDataTask *)postFindOilParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 添加油品
- (NSURLSessionDataTask *)postAddOilParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 修改油品
- (NSURLSessionDataTask *)postUpdateOilParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 删除油品
- (NSURLSessionDataTask *)postDeleteOilParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 查看公司信息
- (NSURLSessionDataTask *)postFindCompanyInfoParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 添加公司图片
- (NSURLSessionDataTask *)postAddCompanyPictureParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 根据userId查询账单
- (NSURLSessionDataTask *)postGetBillInfoParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 获取账单最早日期
- (NSURLSessionDataTask *)postGetCompanyDateParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 油卡消费
- (NSURLSessionDataTask *)postOilCardConsumeParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 经营报表
- (NSURLSessionDataTask *)postStatementParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 查询今日最新账单
- (NSURLSessionDataTask *)postTodayBillInfoParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 修改手机号
- (NSURLSessionDataTask *)postUpdatePhoneParam:(NSDictionary *)param block:(void (^)(XRCommonModel *model,NSError *error))block;

#pragma mark - 获取oss权限
- (NSURLSessionDataTask *)getUserOssAuthorityWithBlock:(void (^)(NSDictionary *posts,En_ResponseStatus *status,NSError *error))block;


@end
